package com.jumi.microservice.domain;

import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * - - - - - - - - - - - - - - -
 * 商品与库存服务dto
 * @author liuz
 * @date 2020/8/11 10:58
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
@ApiModel(value="sku添加库存", description="sku添加库存")
public class GoodsSkuStockDTO extends AbstractObject implements Serializable {

    @ApiModelProperty(value = "商品spuid")
    private Long id;

    @ApiModelProperty(value = "商品skuid")
    private Long skuId;

    @ApiModelProperty(value = "商品类型  1：单个商品；2：第三方商品;3:商品组合")
    private Integer goodsType;

    @ApiModelProperty(value = "商品sku编码")
    private String skuCode;

    @ApiModelProperty(value = "物料id")
    private Long materialSkuId;

    @ApiModelProperty(value = "物料编码")
    private String materialSkuCode;

    @ApiModelProperty(value = "商品名称（+规格名称）")
    private String goodsName;

    @ApiModelProperty(value = "商品重量(KG)")
    private BigDecimal weight;

    @ApiModelProperty(value = "物料库存")
    private Integer materialStorage = 0;

    @ApiModelProperty(value = "预设库存")
    private Integer preStorage = 0;

    @ApiModelProperty(value = "真实库存")
    private Integer realStorage = 0;

    @ApiModelProperty(value = "添加库存")
    private Integer stockQuantity = 0;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Integer getPreStorage() {
        return preStorage;
    }

    public void setPreStorage(Integer preStorage) {
        this.preStorage = preStorage;
    }

    public Integer getRealStorage() {
        return realStorage;
    }

    public void setRealStorage(Integer realStorage) {
        this.realStorage = realStorage;
    }

    public Integer getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Integer stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public String getMaterialSkuCode() {
        return materialSkuCode;
    }

    public void setMaterialSkuCode(String materialSkuCode) {
        this.materialSkuCode = materialSkuCode;
    }

    public Integer getMaterialStorage() {
        return materialStorage;
    }

    public void setMaterialStorage(Integer materialStorage) {
        this.materialStorage = materialStorage;
    }

    public Long getMaterialSkuId() {
        return materialSkuId;
    }

    public void setMaterialSkuId(Long materialSkuId) {
        this.materialSkuId = materialSkuId;
    }


    @Override
    public String toString() {
        return "GoodsSkuStockDTO{" +
                "id=" + id +
                ", skuId=" + skuId +
                ", goodsType=" + goodsType +
                ", skuCode='" + skuCode + '\'' +
                ", materialSkuId=" + materialSkuId +
                ", materialSkuCode='" + materialSkuCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", weight=" + weight +
                ", materialStorage=" + materialStorage +
                ", preStorage=" + preStorage +
                ", realStorage=" + realStorage +
                ", stockQuantity=" + stockQuantity +
                '}';
    }
}
